package com.itheima.exerciseTest.method20_29.method25;

public class Demo {
    public static void main(String[] args) {
        Resource res = new Resource(1000);

        for (int i = 1; i < 10; i++) {
            MyThread mt = new MyThread(res);
            mt.setName(i + "号窗口");
            mt.start();
        }
    }
}
